
Page({
    data: {
     
    },
    onLoad() {

    },
    tapHere(){
      console.log('hello word')
    },
    getApi(){
      wx.request({
        url: 'https://auth-test.lingshumed.com/api/account/login', //仅为示例，并非真实的接口地址
        method: 'POST',
        data: {
          account: 'lingshu@163.com',
          password: 'Lingshu123',
          appCode: 'LS.Screening',
          appType: 1
        },
        header: {
          'content-type': 'application/json' // 默认值
        },
        success (res) {
          console.log(res.data)
        }
      })
    },
    discoveyBlueTooth(){
      wx.openBluetoothAdapter({
        success: function (res) {
          console.log('蓝牙模块初始化成功', res);
        },
        fail: function (err) {
          console.error('蓝牙模块初始化失败', err);
        }
      });
    }
  })